#!/bin/bash

rm -f image/uImage
cd linux
cp ../tools/linux-2.6.32-patch/* . -r
export ARCH=arm
#export CROSS_COMPILE=arm-linux-
export CROSS_COMPILE=arm-linux-
#cp ../tools/my_mini2440_defconfig arch/arm/configs
#make my_mini2440_defconfig
make mini2440_defconfig
make zImage -j4
make uImage
cp arch/arm/boot/uImage ../image
../tools/collect-src -o ../linux_src.list
cd ..
